extends RigidBody2D


func _process(float):
	var velocity = Vector2.ZERO # The player's movement vector.
	#添加一个力
	if Input.is_action_pressed("move_left"):
		apply_torque(-1000000)
	if Input.is_action_pressed("move_right"):
		apply_torque(1000000)
	if  Input.is_action_pressed("move_up"):
		set_linear_velocity(Vector2(0,100))
